<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
  <head>
    <base href="<%=basePath%>">
    <title>注册页面</title>
    <script src="js/regcheckdata.js"></script>
   
    <meta name="viewport" content="width=device-width, initial-scale=1.0">


    <!-- Loading Bootstrap -->
    <link href="${pageContext.request.contextPath }/css/bootstrap.css" rel="stylesheet">

    <!-- Loading Flat UI -->
    <link href="${pageContext.request.contextPath }/css/flat-ui.css" rel="stylesheet">

    <link rel="shortcut icon" href="images/favicon.ico">

   
  </head>
  <body style="background-image:url('images/bg1.gif')">
  <form  action="adminInfoUpdateSuccess.action" method="post" name = "myform" onload="" onsubmit="return checkdata();">
    <div style="background:#ddd;border-radius:0.6em;width:600px;height:300px;margin:5% auto;" class="container">
    	<div style="margin:5% auto;" class="form-group">
		    <table border="1">
		    	<tr>
				  <th rowspan="4"><img src="<%=basePath%>/images/admin.jpg"></th>
				  <th>账号:</th>
				  <td>${sessionScope.account}</td>
				</tr>
				<tr>
				  <th>姓名:</th>
				  <td><input id="name" name="name" type="text" value="<s:property value="adminstab.name"/>" class="form-control" placeholder="username" onkeypress="EnterPress(event)" onblur="checkName(this.value)"/></td>
				  <td><span id="nameERR"></span></td>
				</tr>
				<tr>
				  <th>手机号:</th>
				  <td><input id="mobile" name="mobile" type="text" value="<s:property value="adminstab.telNumber"/>" class="form-control" placeholder="telephone number" onkeypress="EnterPress(event)" onblur="checkMobile(this.value)"/></td>
				  <td><span id="MobileERR"></span></td>
				</tr>
				<tr>
				  <th>邮箱:</th>
				  <td><input id="mail" name="mail" type="text" value="<s:property value="adminstab.mail"/>" class="form-control" placeholder="mail" onkeypress="EnterPress(event)" onblur="checkMail(this.value)"/></td>
				  <td><span id="MailERR"></span></td>
				</tr>
				<tr>
				  <th>暂定</th>
				  <td><button class="btn btn-primary" type="submit">更新</button></td>
				  <td><input class="btn btn-default" type="reset" value="重置"/></td>
				</tr>
		    </table>
	 	</div>
     </div>
   </form>
    <!-- /.container -->


    <!-- Load JS here for greater good =============================-->
    <script src="js/jquery-1.8.3.min.js"></script>
    <script src="js/jquery-ui-1.10.3.custom.min.js"></script>
    <script src="js/jquery.ui.touch-punch.min.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script src="js/bootstrap-select.js"></script>
    <script src="js/bootstrap-switch.js"></script>
    <script src="js/flatui-checkbox.js"></script>
    <script src="js/flatui-radio.js"></script>
    <script src="js/jquery.tagsinput.js"></script>
    <script src="js/jquery.placeholder.js"></script>
  </body>
</html>
